package com.easylinkin.linkappapi.operatelog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.operatelog.entity.CommonOperateLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author tongjie
 * @since 2020-05-07
 */
public interface CommonOperateLogMapper extends BaseMapper<CommonOperateLog> {

    IPage<CommonOperateLog> selectLogs(@Param("page") Page page, @Param("log") CommonOperateLog commonOperateLog);

    /**
     * 批量删除日志
     * @param commonOperateLog
     */
    void deleteLogs(@Param("log") CommonOperateLog commonOperateLog);
}
